"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var Person = /** @class */ (function () {
    function Person(n, a) {
        this.name = n;
        this.age = a;
    }
    Person.prototype.getName = function () {
        console.log(this.name);
    };
    return Person;
}());
var p1 = new Person('zs', 18);
// console.log(p1.name)
p1.getName();
var Student = /** @class */ (function (_super) {
    __extends(Student, _super);
    function Student(name, age) {
        return _super.call(this, name, age) || this;
    }
    Student.prototype.print = function () {
        // console.log(this.name)
    };
    return Student;
}(Person));
var s1 = new Student('lisi', 18);
s1.print();
/**
 * 访问控制修饰符

    public: (默认) 共有，实例 当前类  子类 都可以访问
    protected：受保护，可以被其自身以及子类和父类访问,不能被实例访问
    private:私有，只能被其定义所在的类访问，子类和实例都不能访问
 *
*/ 
